; RUN: llvm-pdbutil pdb2yaml -module-syms %p/Inputs/empty.pdb \
; RUN:   | FileCheck -check-prefix=YAML %s


YAML: ---
YAML: MSF:
YAML:   SuperBlock:
YAML:     BlockSize:       4096
YAML:     FreeBlockMap:    2
YAML:     NumBlocks:       25
YAML:     NumDirectoryBytes: 136
YAML:     Unknown1:        0
YAML:     BlockMapAddr:    24
YAML:   NumDirectoryBlocks: 1
YAML:   DirectoryBlocks: [ 23 ]
YAML:   NumStreams:      0
YAML:   FileSize:        102400
YAML: DbiStream:
YAML:   VerHeader:       V70
YAML:   Age:             1
YAML:   BuildNumber:     35840
YAML:   PdbDllVersion:   31101
YAML:   PdbDllRbld:      0
YAML:   Flags:           1
YAML:   MachineType:     x86
YAML:   Modules:
YAML:     - Module:          'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
YAML:       ObjFile:         'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
YAML:       Modi:
YAML:         Signature:       4
YAML:         Records:
YAML:           - Kind:            S_OBJNAME
YAML:             ObjNameSym:
YAML:               Signature:       0
YAML:               ObjectName:      'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.obj'
YAML:           - Kind:            S_COMPILE3
YAML:             Compile3Sym:
YAML:               Flags:           [ SecurityChecks ]
YAML:               Machine:         Pentium3
YAML:               FrontendMajor:   18
YAML:               FrontendMinor:   0
YAML:               FrontendBuild:   31101
YAML:               FrontendQFE:     0
YAML:               BackendMajor:    18
YAML:               BackendMinor:    0
YAML:               BackendBuild:    31101
YAML:               BackendQFE:      0
YAML:               Version:         'Microsoft (R) Optimizing Compiler'
YAML:           - Kind:            S_GPROC32
YAML:             ProcSym:
YAML:               PtrParent:       0
YAML:               PtrEnd:          196
YAML:               PtrNext:         0
YAML:               CodeSize:        10
YAML:               DbgStart:        3
YAML:               DbgEnd:          8
YAML:               FunctionType:    4097
YAML:               Offset:          16
YAML:               Segment:         1
YAML:               Flags:           [ HasFP ]
YAML:               DisplayName:     main
YAML:           - Kind:            S_FRAMEPROC
YAML:             FrameProcSym:
YAML:               TotalFrameBytes: 0
YAML:               PaddingFrameBytes: 0
YAML:               OffsetToPadding: 0
YAML:               BytesOfCalleeSavedRegisters: 0
YAML:               OffsetOfExceptionHandler: 0
YAML:               SectionIdOfExceptionHandler: 0
YAML:               Flags:           [ AsynchronousExceptionHandling, OptimizedForSpeed ]
YAML:           - Kind:            S_END
YAML:             ScopeEndSym:
YAML:           - Kind:            S_BUILDINFO
YAML:             BuildInfoSym:
YAML:               BuildId:         4110
YAML:     - Module:          '* Linker *'
YAML:       ObjFile:         ''
YAML:       Modi:
YAML:         Signature:       4
YAML:         Records:
YAML:           - Kind:            S_OBJNAME
YAML:             ObjNameSym:
YAML:               Signature:       0
YAML:               ObjectName:      '* Linker *'
YAML:           - Kind:            S_COMPILE3
YAML:             Compile3Sym:
YAML:               Flags:           [  ]
YAML:               Machine:         Intel80386
YAML:               FrontendMajor:   0
YAML:               FrontendMinor:   0
YAML:               FrontendBuild:   0
YAML:               FrontendQFE:     0
YAML:               BackendMajor:    12
YAML:               BackendMinor:    0
YAML:               BackendBuild:    31101
YAML:               BackendQFE:      0
YAML:               Version:         'Microsoft (R) LINK'
YAML:           - Kind:            S_ENVBLOCK
YAML:             EnvBlockSym:
YAML:               Entries:
YAML:                 - cwd
YAML:                 - 'd:\src\llvm\test\DebugInfo\PDB\Inputs'
YAML:                 - exe
YAML:                 - 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\link.exe'
YAML:                 - pdb
YAML:                 - 'd:\src\llvm\test\DebugInfo\PDB\Inputs\empty.pdb'
YAML:           - Kind:            S_TRAMPOLINE
YAML:             TrampolineSym:
YAML:               Type:            TrampIncremental
YAML:               Size:            5
YAML:               ThunkOff:        5
YAML:               TargetOff:       16
YAML:               ThunkSection:    1
YAML:               TargetSection:   1
YAML:           - Kind:            S_SECTION
YAML:             SectionSym:
YAML:               SectionNumber:   1
YAML:               Alignment:       12
YAML:               Rva:             4096
YAML:               Length:          4122
YAML:               Characteristics: 1610612768
YAML:               Name:            .text
YAML:           - Kind:            S_COFFGROUP
YAML:             CoffGroupSym:
YAML:               Size:            4122
YAML:               Characteristics: 1610612768
YAML:               Offset:          0
YAML:               Segment:         1
YAML:               Name:            '.text$mn'
YAML:           - Kind:            S_SECTION
YAML:             SectionSym:
YAML:               SectionNumber:   2
YAML:               Alignment:       12
YAML:               Rva:             12288
YAML:               Length:          690
YAML:               Characteristics: 1073741888
YAML:               Name:            .rdata
YAML:           - Kind:            S_COFFGROUP
YAML:             CoffGroupSym:
YAML:               Size:            323
YAML:               Characteristics: 1073741888
YAML:               Offset:          0
YAML:               Segment:         2
YAML:               Name:            .rdata
YAML:           - Kind:            S_COFFGROUP
YAML:             CoffGroupSym:
YAML:               Size:            0
YAML:               Characteristics: 1073741888
YAML:               Offset:          323
YAML:               Segment:         2
YAML:               Name:            .edata
YAML:           - Kind:            S_COFFGROUP
YAML:             CoffGroupSym:
YAML:               Size:            366
YAML:               Characteristics: 1073741888
YAML:               Offset:          324
YAML:               Segment:         2
YAML:               Name:            '.rdata$debug'
YAML:           - Kind:            S_SECTION
YAML:             SectionSym:
YAML:               SectionNumber:   3
YAML:               Alignment:       12
YAML:               Rva:             16384
YAML:               Length:          4
YAML:               Characteristics: 3221225536
YAML:               Name:            .data
YAML:           - Kind:            S_COFFGROUP
YAML:             CoffGroupSym:
YAML:               Size:            4
YAML:               Characteristics: 3221225600
YAML:               Offset:          0
YAML:               Segment:         3
YAML:               Name:            .bss
YAML:           - Kind:            S_SECTION
YAML:             SectionSym:
YAML:               SectionNumber:   4
YAML:               Alignment:       12
YAML:               Rva:             20480
YAML:               Length:          8
YAML:               Characteristics: 1107296320
YAML:               Name:            .reloc
YAML: ...
